<template>
	<view class="content">
		<u-tabs lineColor="#FFB900" :list="tabs" @click="click">复盘记录</u-tabs>
			<u-collapse @change="change" @close="close" @open="open">
				<u-collapse-item title="2025年7月" name="Docs guide">
					<text class="u-collapse-content">涵盖uniapp各个方面，给开发者方向指导和设计理念，让您茅塞顿开，一马平川</text>
				</u-collapse-item>
				<u-collapse-item title="2025年6月" name="Variety components">
					<text class="u-collapse-content">众多组件覆盖开发过程的各个需求，组件功能丰富，多端兼容。让您快速集成，开箱即用</text>
				</u-collapse-item>
				<u-collapse-item title="2025年5月" name="Numerous tools">
					<u-list @scrolltolower="scrolltolower">
						<u-list-item v-for="(item, index) in indexList" :key="index">
							<u-cell :title="`列表长度-${index + 1}`">
								<!-- <u-avatar slot="icon" shape="square" size="35" :src="item.url"
			 						customStyle="margin: -3px 5px -3px 0"></u-avatar> -->
							</u-cell>
						</u-list-item>
					</u-list>
				</u-collapse-item>
			</u-collapse>
		

	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				indexList: [],
				tabs: [{
					name: '高光时刻',
					disabled: true
				}, {
					name: '踩坑日记',
					disabled: true
				}],
				urls: [
					"https://uviewui.com/album/1.jpg",
					"https://uviewui.com/album/2.jpg",
					"https://uviewui.com/album/3.jpg",
					"https://uviewui.com/album/4.jpg",
					"https://uviewui.com/album/5.jpg",
					"https://uviewui.com/album/6.jpg",
					"https://uviewui.com/album/7.jpg",
					"https://uviewui.com/album/8.jpg",
					"https://uviewui.com/album/9.jpg",
					"https://uviewui.com/album/10.jpg",
				],
			}
		},
		onLoad() {
			this.loadmore();
		},
		methods: {
			open(e) {
				// console.log('open', e)
			},
			close(e) {
				// console.log('close', e)
			},
			change(e) {
				// console.log('change', e)
			},
			scrolltolower() {
				this.loadmore();
			},
			loadmore() {
				for (let i = 0; i < 30; i++) {
					this.indexList.push({
						url: this.urls[uni.$u.random(0, this.urls.length - 1)],
					});
				}
			},
		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>